window.context = window.context || '';// '/talent';
window.tfeContext = window.context;// + '/target';

var language = /zh/gi.test(navigator.browserLanguage || navigator.language) ? "zh" : "en";
var version = "?v=" + (new Date().getTime());
var pages = {
    welcome: (tfeContext + '/zh/welcome/welcome.html' + version).replace(/\/zh\//, '/' + language + '/'),
    index: (tfeContext + '/zh/welcome/index.html' + version).replace(/\/zh\//, '/' + language + '/'),
    login: (tfeContext + '/zh/login/login.html' + version).replace(/\/zh\//, '/' + language + '/'),
    register: (tfeContext + '/zh/register/register.html' + version).replace(/\/zh\//, '/' + language + '/'),
    expert: (tfeContext + '/zh/expert/expert.html' + version).replace(/\/zh\//, '/' + language + '/'),
    talent: (tfeContext + '/zh/bem/index.html' + version).replace(/\/zh\//, '/' + language + '/'),
    industry: (tfeContext + '/zh/industry/industry.html' + version).replace(/\/zh\//, '/' + language + '/'),
    about: (tfeContext + '/zh/about/about.html' + version).replace(/\/zh\//, '/' + language + '/'),
    mlogin: (tfeContext + '/zh/login/enter.html' + version).replace(/\/zh\//, '/' + language + '/'),
    mbUser: (tfeContext + '/zh/mum/index.html#bUser').replace(/\/zh\//, '/' + language + '/')
};
function goNavItem(key) {
    window.location = pages[key];
}
